package strategy.order;

import lombok.AllArgsConstructor;

import java.math.BigDecimal;

/**
 * 策略控制
 * @author Fengdong.Duan
 * @create 2023/12/5 10:30
 */
@AllArgsConstructor
public class Context<T> {
    private ICouponDiscount<T> couponDiscount;

    public BigDecimal discountAmount(T couponInfo, BigDecimal skuPrice) {
        return couponDiscount.discountAmount(couponInfo, skuPrice);
    }
}
